<?php 
$this->Html->script('fancybox/jquery.mousewheel-3.0.4.pack.js', array('block' => 'script'));
$this->Html->script('fancybox/jquery.fancybox-1.3.4.pack.js', array('block' => 'script'));
$this->Html->css('/js/fancybox/jquery.fancybox-1.3.4.css', array('block' => 'css'));
?>
<?php echo $this->element('banner');?>
<div class="container">
    <div id="sub-page" class="row">
        <div class="col-lg-8">
            <h2><?php echo $product['ProductCategory']['name' . $code]?></h2>
            <div class="row prd-detail">
            	<div class="col-lg-6">
               		<div class="prd-pict">
                        <a rel="example_group" href="/files/images/<?php echo $product['Product']['image']?>" title="<?php echo @$product['Product']['name' . $code]?>">
                            <img src="/files/images/<?php echo $product['Product']['image']?>" width="340" height="284">
                        </a>
					</div>
                </div>
                <div class="col-lg-6">
                	<h4><?php echo $product['Product']['name' . $code]?></h4>
                    <ul>
                    	<li><span><?php echo __('Product code')?>:</span><?php echo $product['Product']['code']?></li>
                        <li><span><?php echo __('Length')?>:</span><?php echo $product['ProductDetail']['length']?></li>
                        <li><span><?php echo __('Width')?>:</span><?php echo $product['ProductDetail']['width']?></li>
                        <li><span><?php echo __('Height')?>:</span><?php echo $product['ProductDetail']['height']?></li>
                        <!--
						<li><span><?php echo __('Velocity')?>:</span><?php echo $product['ProductDetail']['velocity']?></li>
                        <li><span><?php echo __('The load')?>:</span><?php echo $product['ProductDetail']['load']?></li>
						-->
                    </ul>
					<br />
					<p><?php echo $product['Product']['short_des' . $code]?></p>
                </div>
            </div>
            <div class="row">
            	<div class="col-lg-12">
                	<h4><?php echo __('General')?></h4>
					<p><?php echo $product['Product']['general' . $code]?></p>
                </div>
            </div>    
        </div>

        <?php echo $this->element('Product/category');?>	
    </div>
</div>

<?php echo $this->element('Product/product_category');?>		

<?php echo $this->element('partner');?>
<script>
$(document).ready(function() {
	$("a[rel=example_group]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">' + (title.length ? title : '') + '</span>';
		}
	});
});
</script>